import request from '@/utils/request'

// 查询回复列表
export function listBigreply(query) {
  return request({
    url: '/discuss/bigreply/list',
    method: 'get',
    params: query
  })
}

// 查询回复详细
export function getBigreply(replyid) {
  return request({
    url: '/discuss/bigreply/' + replyid,
    method: 'get'
  })
}

// 新增回复
export function addBigreply(data) {
  return request({
    url: '/discuss/bigreply',
    method: 'post',
    data: data
  })
}
// 新增点赞
export function addPoint(data) {
  return request({
    url: '/discuss/bigreply/addPoint',
    method: 'post',
    data: data
  })
}

// 修改回复
export function updateBigreply(data) {
  return request({
    url: '/discuss/bigreply',
    method: 'put',
    data: data
  })
}

// 删除回复
export function delBigreply(replyid) {
  return request({
    url: '/discuss/bigreply/' + replyid,
    method: 'delete'
  })
}
